package cn.kgc.springcloud.service;

import cn.kgc.springcloud.service.impl.FaqsOpenFeignImpl;
import cn.kgc.springcloudfaqs.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Component
@FeignClient(value = "faqssearch8081",fallback = FaqsOpenFeignImpl.class)
public interface FaqsFeignService {
    @GetMapping("/faqs/faqs/selectPage")
    public R<Map<String,Object>> selectPage(@RequestParam("pageNum") Integer pageNum,@RequestParam("info") String info);
}
